
<h1>Listing shangpins</h1>

<div id=shangpinlist>


<% @shangpins.each do |shangpin| %>
<a href=<%=shangpin.id%>>
<img  src=<%= shangpin.tupian %>>
<br>
<%=shangpin.biaoti%>
</a>
<br>
价格<%=shangpin.jiage%>
数量<%=shangpin.shuliang%>
<br>

<a href=/shangpins/gouwuche/<%=shangpin.id%>>购买  </a>
<br>
 <% end %>
</table>
  <%= will_paginate @Neirong %>
<br />
<%= link_to 'New shangpin', new_shangpin_path %>
</div>buy